<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j"
	template="/layout/contentLayout.xhtml">
	
	<ui:param name="param_navigationUrl" value="/luyuan/sms/navigationSms.jsf" /> 
	<ui:param name="param_pageTitle" value="#{messages.luyuan_crm_sms_log}" />
	
	<ui:define name="road">
		<span><h:outputLink value="">短信网关日志列表</h:outputLink></span>
	</ui:define>
	
	<!-- content -->	
	<ui:define name="content">
		<h:form id="smsForm">
			<rg:areaPanel>
				<rg:areaPanel type="searchPanel" style="margin-top: 10px;">
					<rg:fieldSet column="auto" labelWidth="80px" >
						<rg:inputText id="username" label="发件人" value="#{smsAction.criteria.fromUsername}" />
						<rg:inputText id="content" label="短信内容" value="#{smsAction.criteria.content}" />
						<rg:calendar id="calendar_start_id" value="#{smsAction.startDate}"
							label="开始时间" datePattern="yyyy-MM-dd" />
						<rg:calendar id="calendar_end_id" value="#{smsAction.endDate}"
							label="结束时间" datePattern="yyyy-MM-dd" />
					    <rg:field>
							<h:commandButton styleClass="button" value="搜索" />
						</rg:field>
					</rg:fieldSet>
				</rg:areaPanel>
				<rg:titlePanel headerTitle="日志列表" style="margin-top: 10px;" needButton="true" readonly="false">
					<rg:table tableId="smsLogTable" value="#{smsAction.tableModel}" var="item">
						<rg:column property="fromUsername" title="发件人"  />
						<rg:column property="toUserName" title="收件人"  />
						<rg:column property="toPhone" title="接收号码"  />
						<rg:column property="content" title="短信内容" />
						<rg:column property="spnumber" title="短信流水号" />
						<rg:column property="status" title="是否发送成功"  />
						<rg:column property="detail" title="服务端标识"  />
						<rg:column property="sendDate" title="发送时间"  />
					</rg:table>
				</rg:titlePanel>
			</rg:areaPanel>
		</h:form>
	</ui:define>
</ui:composition>